package me.sulong;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@EnableTransactionManagement
@Configuration
public class DataSourceTxManagerConfig extends BaseSpringConfig{

    @Bean
    DataSourceTransactionManager txManager() {
        return new DataSourceTransactionManager(dataSource());
    }

}
